import request from '@/utils/request'

// 查询节假日配置列表
export function listHolidays(query) {
  return request({
    url: '/personnel/holidays/list',
    method: 'get',
    params: query
  })
}

// 查询节假日配置详细
export function getHolidays(id) {
  return request({
    url: '/personnel/holidays/' + id,
    method: 'get'
  })
}

// 新增节假日配置
export function addHolidays(data) {
  return request({
    url: '/personnel/holidays',
    method: 'post',
    data: data
  })
}

// 修改节假日配置
export function updateHolidays(data) {
  return request({
    url: '/personnel/holidays',
    method: 'put',
    data: data
  })
}

// 删除节假日配置
export function delHolidays(id) {
  return request({
    url: '/personnel/holidays/' + id,
    method: 'delete'
  })
}
